#include <Windows.h>
#include <tchar.h>
#include <assert.h>

void _DemoAnimateWnd(HWND hWnd)
{
	UINT dwEffType[] = { AW_BLEND, AW_CENTER, AW_HOR_POSITIVE, 
						 AW_HOR_NEGATIVE, AW_VER_POSITIVE, AW_VER_NEGATIVE };
	assert(NULL != hWnd && IsWindow(hWnd));
	for (int nIndex = 0; nIndex < (sizeof(dwEffType) / sizeof(*dwEffType)); nIndex++)
	{
		AnimateWindow(hWnd, 300, dwEffType[nIndex]);
		Sleep(1000);
		AnimateWindow(hWnd, 300, dwEffType[nIndex]|AW_HIDE);

		Sleep(2000);
	}

	return;
}